<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
  </head>

  <body>
    <div id="app"></div>

    <script>
      Promise.all([
        new Promise((resolve, reject) => {
          $ajax({
            url: 'url1',
            success: function(data) {
              resolve(data);
            }
          });
        }),
        new Promise((resolve, rejcet) => {
          $ajax({
            url: 'url2',
            success: function(data) {
              resolve(data);
            }
          });
        })
      ]).then(results => {
        resluts[0]; //第一个请求的结果
        results[1]; //第二个请求的结果
      });
    </script>
  </body>
</html>
